﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.Web.Security;
using System.ComponentModel.DataAnnotations;

namespace EventPlanner.Models
{
    /* Clase para modelar los datos de un contacto */
    public class Contacto : IValidatableObject
    {

        public int id { get; set; }

        [DisplayName("Usuario que creo el contacto")]
        public string WebSiteUser { get; set; }
        
        [Required]
        [DisplayName("Nombre")]
        public string Nombre { get; set; }

        [DisplayName("Apellido")]
        public string Apellido { get; set; }

        [Required]
        [DisplayName("Correo Electrónico")]
        public string Email { get; set; }

        [DisplayName("Correo alternativo")]
        public string Email2 { get; set; }

        [DisplayName("Facebook")]
        public string facebook { get; set; }

        [DisplayName("Teléfono mobil")]
        public Nullable<int> Mobil { get; set; }

        [DisplayName("Teléfono fijo")]
        public Nullable<int> Fijo { get; set; }


        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            var results = new List<ValidationResult>();

            return results;
        }
    }
}